var home = document.getElementsByClassName("mobile-home")[0];
var wode = document.getElementsByClassName("mobile-word")[0];
home.onclick = function(e){
	var page1 = document.getElementsByClassName("page1")[0];
	var page2 = document.getElementsByClassName("page2")[0];
	page1.style.display = 'block';
	page2.style.display = "none";
	home.className ="mobile-home on";
	wode.className = "mobile-word off";
}
wode.onclick = function(e){
	var page1 = document.getElementsByClassName("page1")[0];
	var page2 = document.getElementsByClassName("page2")[0];
	page1.style.display = 'none';
	page2.style.display = "block";
	home.className ="mobile-home off";
	wode.className = "mobile-word on";
}
const WIDTH = 750 //设计稿尺寸
const setView = () => {
    document.documentElement.style.fontSize = (100 * screen.width / WIDTH) + 'px'
 }
window.onorientationchange = setView
setView()
